package com.useeinfo.oa.modules.threadUtil.thread;

import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.inspection.biz.InspectionTechnologyBiz;
import org.apache.poi.ss.usermodel.Workbook;

public class InspectionTechnologyThread extends Thread{

    private InspectionTechnologyBiz inspectionTechnologyBiz;
    private Workbook wb;
    private Enterprise enterprise;

    public InspectionTechnologyThread(InspectionTechnologyBiz inspectionTechnologyBiz, Workbook wb, Enterprise enterprise) {
        this.inspectionTechnologyBiz = inspectionTechnologyBiz;
        this.wb = wb;
        this.enterprise = enterprise;
    }

    @Override
    public synchronized void run() {
        inspectionTechnologyBiz.importTechnology(wb,enterprise);
    }
}
